import { axiosGet } from '@/libs/http';

function getData (consName, type) {
  return new Promise((resolve, reject) => {
    axiosGet({
      // url: `api/constellation/getAll?consName=${consName}&type=${type}`,
      url: `api/constellations?consName=${consName}&type=${type}`,
      success (data) {
        resolve(data);
      },
      error (err) {
        reject(err)
      }
    })
  })  
}

export {
  getData
}